<!-- 头部：高40 -->
<div class="header-box">
    <div class="header">
        <div class="leftbox">
            <span class="iconfont icon-chazhaomendian"></span>
            <a href="https://storelocator.danielwellington.cn/"><span>查找门店</span></a>
            <span class="iconfont icon-duihuakuang"></span>
            <a href="javascript:"><span>查找门店</span></a>
        </div>
        <div class="logo">
            <a href="../html/index.html">
                <img src="../img/logo.jpg" alt=""></a>
        </div>
        <div class="rightbox">
            <span class="iconfont icon-yonghu1"></span>
            <a href="javascript:"><span class="lgc">DW会员俱乐部</span></a>
        </div>
    </div>
</div>
<!-- 导航 ：高60宽1536 -->
<div class="nav-box">
    <div class="nav">
        <ul>
            <li>
                <a href="../html/detail.html">全新上市

                </a>

            </li>
            <li><a href="../html/detail.html">腕表
                    <div class="triangle">
                        <!-- <span class="iconfont icon-icon-resize"></span> -->
                    </div>
                    <!-- <div class="showbox"></div> -->
                </a></li>
            <li><a href="../html/detail.html">饰品</a></li>
            <li><a href="../html/detail.html">系列</a></li>
            <li><a href="../html/detail.html">礼品套装</a></li>
            <li><a href="../html/detail.html">表带</a></li>
            <li><a href="../html/detail.html">穿搭灵感</a></li>
            <li><a href="../html/detail.html">探索DW</a></li>
        </ul>
        <div class="cart">
            <a href="javascript:"><span class="iconfont icon-gwc"></span></a>
        </div>

    </div>
</div>

<script>
    var lgc = getCookie("lgc");
    if (lgc) {

        // console.log($(".lgc").html(`${lgc}<button class="btn"><span>x</span></button>`).parents(".rightbox"));
        console.log($(".lgc"));
        $(".lgc").html(`${lgc}<button class="btn"><span>退出</span></button>`).parents(".rightbox").css({ width: "150px" });
    } else {

        $(document).on("click", ".rightbox", function () {

            location.href = "../html/sign.html"
        })
    }
    $(document).on("click", ".btn", function () {
        console.log(1);
        delCookie("lgc");
        delCookie("phone");
        alert("是否退出当前用户")
        location.reload();
    })
</script>